<include file="Public:pagerForm"/>
<div class="pageHeader">
    
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">            
            <li><a class="add" href="__CONTROLLER__/show" target="dialog" mask="true" width='500' height='600'><span>添加</span></a></li>                      
            <li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="id[]" href="<{:U('Web/del')}>" class="delete"><span>批量删除</span></a></li>                  
            <li><a class="edit" href="__CONTROLLER__/show/id/{l_id}" target="dialog" mask="true" warn="请选择一条信息" width='500' height='600'><span>修改</span></a></li>
            <li class="line">line</li>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="88" nowrapTD="false">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="id[]" class="checkboxCtrl"></th>
                <th width="60"  align="center">序号</th>
                <th width="150" align="center">网站名</th>
                <th width="150" align="center">图标</th>                
                <th width="150" align="center">SEO关键字</th>
                <th width="300" align="center">网站描述</th>
                <th width="200" align="center">版权信息</th>
                <th width="58" align="center">状态</th> 
                <th width="150" align="center">操作</th>
            </tr>
        </thead>
        <tbody>
            <foreach name='list' item="list">
                <tr target="l_id" rel="<{$list.id}>">
                <td><input name="id[]" value="<{$list.id}>" type="checkbox"></td>
                <td><{$key}></td>
                <td ><{$list.name}></td>
                <td class="imgs" align="center"><img src="<{$Think.const.PUBLIC_URL}>Upload/<{$list.icon}>" height="96px"></td>
                <td ><{$list.keywords}></td>
                <td ><{$list.desc_}></td>
                <td ><{$list.copyright}></td>
                <td align="center"><{$list.status|getStatus}></td> 
                <td>
                    <eq name="list['status']" value='2'>
                        <a href="<{:U('Web/changeStatus',array('id'=>code($list['id'],1),'status'=>code('1',1)))}>" target="ajaxTodo"><span>启用</span></a> | 
                    <else/>
                        <a href="<{:U('Web/changeStatus',array('id'=>code($list['id'],1),'status'=>code('2',1)))}>" target="ajaxTodo"><span>禁用</span></a> |
                    </eq>
                    <a title="确定删除该数据" target="ajaxTodo" href="<{:U('Web/del',array('id'=>code($list['id'],1)))}>" >删除</a>                       
                </td>
            </tr>
            </foreach>
        </tbody>        
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20">20</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
            <span>条，共<{$totalCount}>条</span>          
        </div>
        <div class="pagination" targetType="navTab" totalCount="<{$totalCount}>" numPerPage="<{$numPerPage}>" pageNumShown="6"  currentPage="<{$currentPage}>"></div>
    </div>
</div>
<style type="text/css" media="screen">
    .imgs{text-align:center;}
    .imgs div{height:100px!important;}
</style>